package org.movee.spring.data.hugegraph.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Inherited
@Documented
public @interface Unique {

    /**
     * (Optional) The name of the index.  Defaults to a provider-generated value.
     *
     * @return The index name
     */
    String name() default "";

    String[] fields() default {};

}
